/*
 * @Description:
 * @Author: YWJ
 * @Date: 2024-09-09 09:38:14
 * @LastEditors: YWJ
 * @LastEditTime: 2025-04-17 15:39:53
 */
const routes = [
  {
    path: '',
    redirect: { name: 'home' },
    // meta: { title: '首页' },
    isShow: false,
    children: [
      {
        path: 'home',
        name: 'home',
        //@ts-ignore
        component: () => import('@/layout/home.vue'),
      },
    ],
  },
  {
    path: '/c4',
    title: '第四章-响应式系统实现',
    isShow: true,
    children: [
      {
        path: '4.2ReactiveSystemImplementation',
        name: '4.2ReactiveSystemImplementation',
        title: '4.2响应式系统实现',
        component: () =>
          import('@/views/Chapter4/4.2ReactiveSystemImplementation.vue'),
      },
      {
        path: '4.3ReactiveSystemImplementation',
        name: '4.3ReactiveSystemImplementation',
        title: '4.3响应式系统实现',
        //@ts-ignore
        component: () =>
          //@ts-ignore
          import('@/views/Chapter4/4.3ReactiveSystemImplementation.vue'),
      },
    ],
  },
  {
    path: '/c5',
    title: '第5章非原始值的响应式方案',
    isShow: true,
    children: [
      {
        path: '5.5ShallowDeepResponse',
        name: '5.5ShallowDeepResponse',
        title: '5.5 浅响应与深响应',
        //@ts-ignore
        component: () =>
          //@ts-ignore
          import('@/views/Chapter5/5.5ShallowDeepResponse.vue'),
      },
      {
        path: '5.6ShallowReadOnly',
        name: '5.6ShallowReadOnly',
        title: '5.6 只读和浅只读',
        //@ts-ignore
        component: () =>
          //@ts-ignore
          import('@/views/Chapter5/5.6ShallowReadOnly.vue'),
      },
      {
        path: '5.7ProxyArray',
        name: '5.7ProxyArray',
        title: '5.7 代理数组',
        //@ts-ignore
        component: () =>
          //@ts-ignore
          import('@/views/Chapter5/5.7ProxyArray.vue'),
      },
      {
        path: '5.8ProxySetAndMap',
        name: '5.8ProxySetAndMap',
        title: '5.8 代理Set 和Map',
        //@ts-ignore
        component: () =>
          //@ts-ignore
          import('@/views/Chapter5/5.8ProxySetAndMap.vue'),
      },
    ],
  },
  {
    path: '/:pathMatch(.*)',
    isShow: false,
    name: 'notFound',
    //@ts-ignore
    component: () => import('@/layout/Notfount.vue'),
  },
];

export default routes;
